<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DomainModel.Entities.Event>" %>


<!-- cooment form start -->
 <div class="event_comment_form">
            <h3>
                Put your comment here:
            </h3>
            <%= Html.ValidationSummary("Submit was unsuccessful. Please correct the errors and try again.")%>
            <% using (Html.BeginForm("comment", "event", FormMethod.Post, new { enctype = "multipart/form-data" }))
               { %>
                 <%= Html.Hidden("EventID", Model.EventID)%>
            <p>
             <%= Html.TextArea("Content",null, new { @class = "event_desription_textarea" })%>
             <%= Html.ValidationMessage("Content")%>
                   
             <input type="submit" class="button" value="Submit Comment" />
            </p>
            <% } %>

             <%=Html.GetViewData(TempData["ErrorMessage"], new { @class = "error_message" })%>
        </div>
<!-- cooment form end -->
